<?php /* Smarty version 2.6.26, created on 2015-06-04 22:33:50
         compiled from D:/wamp/www/homework/0603/4.wenda/Index/View/Ask/show.html */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>后盾问答</title>
	<meta name="keywords" content="后盾问答"/>
	<meta name="description" content="后盾问答"/>
	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "../Common/header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
	
	<link rel="stylesheet" href="<?php echo @__PUBLIC__; ?>
/Css/question.css" />
	<script type="text/javascript" src="<?php echo @__PUBLIC__; ?>
/Js/question.js"></script>
</head>
<body>
	
	<div id='location'>
		<a href="">全部分类</a>
		 <?php unset($this->_sections['f']);
$this->_sections['f']['loop'] = is_array($_loop=$this->_tpl_vars['fuCate']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['f']['name'] = 'f';
$this->_sections['f']['show'] = true;
$this->_sections['f']['max'] = $this->_sections['f']['loop'];
$this->_sections['f']['step'] = 1;
$this->_sections['f']['start'] = $this->_sections['f']['step'] > 0 ? 0 : $this->_sections['f']['loop']-1;
if ($this->_sections['f']['show']) {
    $this->_sections['f']['total'] = $this->_sections['f']['loop'];
    if ($this->_sections['f']['total'] == 0)
        $this->_sections['f']['show'] = false;
} else
    $this->_sections['f']['total'] = 0;
if ($this->_sections['f']['show']):

            for ($this->_sections['f']['index'] = $this->_sections['f']['start'], $this->_sections['f']['iteration'] = 1;
                 $this->_sections['f']['iteration'] <= $this->_sections['f']['total'];
                 $this->_sections['f']['index'] += $this->_sections['f']['step'], $this->_sections['f']['iteration']++):
$this->_sections['f']['rownum'] = $this->_sections['f']['iteration'];
$this->_sections['f']['index_prev'] = $this->_sections['f']['index'] - $this->_sections['f']['step'];
$this->_sections['f']['index_next'] = $this->_sections['f']['index'] + $this->_sections['f']['step'];
$this->_sections['f']['first']      = ($this->_sections['f']['iteration'] == 1);
$this->_sections['f']['last']       = ($this->_sections['f']['iteration'] == $this->_sections['f']['total']);
?>
		    <?php if ($this->_sections['f']['last']): ?>
			&gt;&nbsp;<?php echo $this->_tpl_vars['fuCate'][$this->_sections['f']['index']]['title']; ?>
&nbsp;&nbsp;
			<?php else: ?>
			&gt;&nbsp;<a href="<?php echo @__APP__; ?>
?c=List&cid=<?php echo $this->_tpl_vars['fuCate'][$this->_sections['f']['index']]['cid']; ?>
"><?php echo $this->_tpl_vars['fuCate'][$this->_sections['f']['index']]['title']; ?>
</a>&nbsp;&nbsp;
			<?php endif; ?>
		 <?php endfor; endif; ?>
	</div>

<!--------------------中部-------------------->
	<div id='center-wrap'>
		<div id='center'>
			<div id='left'>
				<div id='answer-info'>
					<!-- 如果没有解决用wait -->
					<div class='ans-state wait'></div>
					<div class='answer'>
						<?php $_from = $this->_tpl_vars['askCate']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['v']):
?>
						<p class='ans-title'><?php echo $this->_tpl_vars['v']['content']; ?>

							<b class='point'><?php echo $this->_tpl_vars['v']['reward']; ?>
</b>
						</p>
					</div>
					<ul>
						<li><a href=""><?php echo $this->_tpl_vars['v']['username']; ?>
</a></li>
						<li><i class='level lv1' title='Level 1'></i></li>
						<li><?php echo $this->_tpl_vars['v']['time']; ?>
</li>
				        <?php endforeach; endif; unset($_from); ?>
					</ul>
					<div class='ianswer'>
						<form action="" method='POST'>
							<p>我来回答</p>
							<textarea name="content"></textarea>
							<input type="hidden" name='qid' value=''>
							<input type="submit" value='提交回答' id='anw-sub'/>
						</form>
					</div>
					<!-- 满意回答 -->
					<div class='ans-right'>
						<p class='title'><i></i>满意回答<span></span></p>
						
						<p class='ans-cons'>很不错！</p>
						
						<dl>
							<dt>
								<a href=""><img src="<?php echo @__PUBLIC__; ?>
/Images/noface.gif" width='48' height='48'/></a>
							</dt>
							<dd>
								<a href="">用户</a>
							</dd>
							<dd><i class='level lv1'></i></dd>
							<dd>20%</dd>
						</dl>
					</div>
					<!-- 满意回答 -->
				</div>

				<div id='all-answer'>
					<div class='ans-icon'></div>
					<p class='title'>共 <strong><?php echo $this->_tpl_vars['anNum']['0']['anNum']; ?>
</strong> 条回答</p>
					<ul>
						<?php $_from = $this->_tpl_vars['anData']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['v']):
?>
						<li>
							<div class='face'>
								<a href="">
									<img src="<?php echo @__PUBLIC__; ?>
/Images/noface.gif" width='48' height='48'/>
								</a>
							</div>
							<div class='cons blue'>
								<p><?php echo $this->_tpl_vars['v']['content']; ?>
！<span style='color:#888;font-size:12px'>&nbsp;&nbsp;(<?php echo $this->_tpl_vars['v']['time']; ?>
)</span></p>
							</div>
							
								<a href="<?php echo @__APP__; ?>
?c=Ask&a=accept&asid=<?php echo $this->_tpl_vars['v']['asid']; ?>
&anid=<?php echo $this->_tpl_vars['v']['anid']; ?>
" class='adopt-btn'>采纳</a>
							
						</li>
                        <?php endforeach; endif; unset($_from); ?>
						
					</ul>
					<div class='page'>
						<a href="">1</a>
						<a href="">2</a>
						<a href="">3</a>
						<a href="">4</a>
					</div>
				</div>
				<div id='other-ask'>
					<p class='title'>待解决的相关问题</p>
					<table>
						<?php $_from = $this->_tpl_vars['xgCate']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['v']):
?>
						<tr>
							<td class='t1'><a href="<?php echo @__APP__; ?>
?c=Ask&a=show&asid=<?php echo $this->_tpl_vars['v']['asid']; ?>
&cid=<?php echo $this->_tpl_vars['v']['cid']; ?>
"><?php echo $this->_tpl_vars['v']['content']; ?>
</a></td>
							<td><?php echo $this->_tpl_vars['v']['answer']; ?>
&nbsp;回答</td>
							<td><?php echo $this->_tpl_vars['v']['time']; ?>
</td>
						</tr>
						<?php endforeach; endif; unset($_from); ?>
					</table>
				</div>
			</div>
		<!-- 右侧 -->
		<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "../Common/right.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
			
		</div>

	</div>
	
<!--------------------中部结束-------------------->

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "../Common/footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</body>
</html>
<!-- 底部结束 -->